import lRequest from "../index";

export function modifyPrice(data) {
  return lRequest.post({
    url: "/registration/modifyPrice",
    showLoading: false,
    data,
  });
}
export function getIndexBannerList() {
  return lRequest.get({
    url: "/jxxhWebsite/websiteBanner/getIndexBannerList",
    showLoading: false,
  });
}

export function getArticleList4ArticleType(articleType) {
  return lRequest.get({
    url:'/jxxhWebsite/websiteArticle/getArticleList4ArticleType',
    params: {'articleType': articleType}
  })
}

export function getArticleVosPage(params) {
  return lRequest.get({
    url:'/jxxhWebsite/websiteArticle/getArticleVosPage',
    params: params
  })
}

export function getArticleListByArticleId(articleId) {
  return lRequest.get({
    url:'/jxxhWebsite/websiteArticle/getArticleListByArticleId/'+articleId,
    params: {}
  })
}

export function recordViewsApi(articleId) {
  return lRequest.put({
    url:'/jxxhWebsite/websiteArticle/recordViews/'+articleId,
    params: {}
  })
}

export function getMemberUnitListApi() {
  return lRequest.get({
    url:'/jxxhWebsite/websiteMemberUnit/getMemberUnitList4Index',
    params: {}
  })
}

export function getActivityList4IndexApi() {
  return lRequest.get({
    url:'/jxxhWebsite/websiteActivity/getActivityList4Index',
    params: {}
  })
}

export function getPreheatActivityListApi() {
  return lRequest.get({
    url:'/jxxhWebsite/websiteActivity/getPreheatActivityList',
    params: {}
  })
}

export function getActivityInfoByIdApi(activityId) {
  return lRequest.get({
    url:'/jxxhWebsite/websiteActivity/getActivityInfoById/'+activityId,
    params: {}
  })
}

export function getWebsiteActivityScheduleListApi(activityId) {
  return lRequest.get({
    url:'/jxxhWebsite/websiteActivity/getWebsiteActivityScheduleList/'+activityId,
    params: {}
  })
}

export function getWebsiteActivityExpertListApi(activityId) {
  return lRequest.get({
    url:'/jxxhWebsite/websiteActivity/getWebsiteActivityExpertList/'+activityId,
    params: {}
  })
}



export function getMemberUnit4IdApi(unitId) {
  return lRequest.get({
    url:'/jxxhWebsite/websiteMemberUnit/getMemberUnit4Id/'+unitId,
    params: {}
  })
}

export function getAboutUsVosPageApi() {
  return lRequest.get({
    url:'/jxxhWebsite/websiteAboutUs/getAboutUsVosPage',
    params: {}
  })
}
